package com.amway.qy.core.service;

import com.amway.qy.resource.dept.QyDepartment;
import com.amway.qy.resource.result.BaseResult;
import com.amway.qy.resource.result.dept.QyDeptCreateResult;
import com.amway.qy.resource.result.dept.QyDeptListResult;
import com.amway.qy.core.service.QyBaseInteractiveService;

public interface QyDepartmentSerivce extends QyBaseInteractiveService{

	/*
	 * Create
	 */
	QyDeptCreateResult createQyDepartment(QyDepartment dept);
	
	String createQyDepartmentInRaw(QyDepartment dept);
	
	/*
	 * Update
	 */
	BaseResult updateQyDepartment(QyDepartment dept);
	
	String updateQyDepartmentInRaw(QyDepartment dept);
	
	/*
	 * Delete
	 */
	BaseResult deleteQyDepartment(Integer deptId);
	String  deleteQyDepartmentInRaw(Integer deptId);
	
	/*
	 * List Department
	 */
	QyDeptListResult listDepartment(Integer deptId);
	String listDepartmentInRaw(Integer deptId);
	
	//if the deptId is null , then system will set the deptId to Root (id = 1) as default.
	QyDeptListResult listDepartment();
	String listDepartmentInRaw();
	
}